package com.xscha.soyue.common.core.property;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName RsaProperties
 * @Description: rsa加密信息配置 加解密长度有限，需分块加密解密
 * @author Vondser
 * @Date 2022/6/13
 * @Version V2.0
 */
@Component
@ConfigurationProperties(prefix = "rsa")
public final class RsaProperties {

	/**
	 * RSA公匙
	 */
	public static String PRIVATE_KEY;

	/**
	 * RSA私匙
	 */
	public static String PUBLIC_KEY;

	public void setPublicKey(String publicKey) {
		RsaProperties.PUBLIC_KEY = publicKey;
	}

	public void setPrivateKey(String privateKey) {
		RsaProperties.PRIVATE_KEY = privateKey;
	}

}
